package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.queryParams.GeologicalQueryParams;
import com.css.fxfzypg.modules.baseData.entity.GeologicalEntity;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-08-16 13:59
 */
public interface GeologicalRepository {


    GeologicalEntity saveGeological(GeologicalEntity geologicalEntity);

    Object getGeologicalById(String id);

    void deleteGeological(List<Integer> ids, Timestamp currentTimestamp);

    Page<GeologicalEntity> getAllGeologicalByParams(GeologicalQueryParams queryParams);

    List<GeologicalEntity> exportExcel();

    void importExcel(List<GeologicalEntity> geologicalEntities);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
